home *** CD-ROM | disk | FTP | other *** search
/ Belgian Amiga Club - ADF Collection / BS1 part 47.7z / BS1 part 47 / ImageMaster RT v1.50b (1994)(Black Belt Systems)(Disk 6 of 7)[HD].7z / ImageMaster RT v1.50b (1994)(Black Belt Systems)(Disk 6 of 7)[HD].adf / piarc.lzh.parta / FlickWR4.rexx < prev    next >
OS/2 REXX Batch file  |  1994-03-17  |  1KB  |  54 lines

  1. /*
  2.     This phase calls the delta generator with the -l switch
  3.     to generate the loop deltas
  4.  */
  5.  
  6. /*
  7.  * open rexxsupport.library -- needed for some functions
  8.  */
  9. if ~show('L',"rexxsupport.library") then do
  10.   if addlib('rexxsupport.library',0,-30,0) then do
  11.       /* everything's ok */
  12.     end;
  13.   else do
  14.     say 'We Have A Library Problem, Unable To Load "rexxsupport.library"';
  15.     say 'Cannot operate FlickWR.rexx without this library - sorry!';
  16.     exit 10;
  17.     end;
  18.   end;
  19.  
  20. prtnme = 'IP_Port'; /* assume Image Professional */
  21. if show('P','IP_Port') = 0 then do
  22.   if show('P','IM_Port') = 0 then do
  23.     say "Can't find image processor's ARexx port!!!"; /* not running? */
  24.     say "This script requires IP, IM or IM F/c to run!";
  25.     exit(20);
  26.     end;
  27.   else do
  28.     prtnme = 'IM_Port'; /* That's the thing about assumptions... */
  29.     end;                 /* We make em, user's break em.          */
  30.   end;
  31.  
  32. options;
  33. address;
  34.  
  35.   prevpath = 'ram:'; /* put user in ram to start with... */
  36.  
  37.   call open(fhandle,'ram:IP_FLICKWR.CFG','read');      /* open the file */
  38.    jiffies = readln(fhandle);
  39.    flickfile = readln(fhandle);
  40.    prefs = readln(fhandle);
  41.   call close(fhandle);                     /* close the file    */
  42.  
  43.   if prefs = 0 then do
  44.     address command 'cmpi:FlickWR -l '||jiffies||' '||flickfile;
  45.     end;
  46.  
  47.   address command 'delete >nil: ram:IP_FLICKWR.CFG';
  48.  
  49.   address(prtnme);
  50.   'finish';
  51.   exit 0;
  52.  
  53.  
  54.